package com.educate.common.utils.converter;

import org.springframework.core.convert.converter.Converter;

public abstract class SimpleConverter<D> implements Converter<D, D> {
    @Override
    public final D convert(D source) {
        if (source != null) {
            onConvert(source);
        }
        return source;
    }

    protected abstract void onConvert(D source);
}
